package cn.ysnk.clz.entity.menu;

import java.util.List;

import com.jfinal.plugin.activerecord.Model;

import cn.ysnk.clz.config.annotation.EntityAnnotation;


@EntityAnnotation(tableName="clz_sub_menu")
public class AdminSubMenu extends Model<AdminSubMenu>{
	public static final AdminSubMenu adminSubMenuDao = new AdminSubMenu();
	
	public List<AdminSubMenu> findSubMenuByParentMenuId(String menuId){
		return adminSubMenuDao.find("select * from clz_sub_menu where menuId='"+menuId+"' order by sort");
	}

}
